import { get, post } from "../utils/request.js" 

export function apiLogin(data){
	console.log("=============apiLogin============");
	console.log(data);
	return post({url:"/student/member/login",data:data})
}

export function apiGetMember(){
	return get({url:"/student/member/getMemberByMobile"})
}


export function apiGetBuyCourse(){
	return get({url:"/order/getOrderByPhone"})
}


export function apiGetCode(phone){
	console.log("================apiGetCode=======================");
	return get({url:"/student/member/createCode?phone="+phone})
}

export function apiSubmit(data){
	return post({url:"/student/member/modifyStudentInformation",data:data})
}


export function apiGetAllCourseCollection(id){
	return get({url:"/core/courseCollection/getAllCourseCollection/"+id})
}